package org.example.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

/**
 * @author 虎哥
 */
@FeignClient(value = "consumer",path = "consumer", contextId = "consumer")
public interface UserFeign {

    @GetMapping("/findAll/{num}")
    List<String> findAll(@PathVariable("num") String num);

}
